﻿using System.Collections.Generic;

namespace JinYuan.MES.Models
{
    /// <summary>
    /// 结果加工参数
    /// </summary>
    public class ProductResultParameters
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        public string equipNum { get; set; }
        /// <summary>
        /// 类型单进整出：DZ 整进整出：ZZ 单进单出：DD 未传时默认按照ZZ进行数据解析
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 设备数据
        /// </summary>
        public string payload { get; set; }
    }

    /// <summary>
    /// 单进整出
    /// </summary>
    public class Payload1
    {
        /// <summary>
        /// 工厂代码
        /// </summary>
        public string siteCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string lineCode { get; set; }
        /// <summary>
        /// 员工账号
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 物料编码 工单产成品物料号
        /// </summary>
        public string materialCode { get; set; }
        /// <summary>
        /// 小车号 装载电池的小车编号
        /// </summary>
        public string carCode { get; set; }
        /// <summary>
        /// 补录 是否属于补录数据（BL=补录，JS=及时上传）
        /// </summary>
        public string collection { get; set; }
        /// <summary>
        /// 采集时间 数据的采集时间
        /// </summary>
        public string recordDate { get; set; }
        /// <summary>
        /// 条码数量 传入条码的个数
        /// </summary>
        public int qty { get; set; }
        /// <summary>
        /// RFID托杯码
        /// </summary>
        public string containerCode { get; set; }
        /// <summary>
        /// 条码数组
        /// </summary>

        public IdentificationListItem identification { get; set; }
        public List<TagDataVOListItem> tagDataVOList { get; set; }
    }

    public class IdentificationListItem
    {
        /// /// <summary>
        /// 条码
        /// </summary>
        public string identification { get; set; }
        /// <summary>
        /// 质量状态 各产品所有参数的整体判断结果（Y/N）
        /// </summary> 
        public string qualityStatus { get; set; }
        /// <summary>
        /// 采集数组
        /// </summary>

    }



    public class TagDataVOListItem
    {
        /// <summary>
        /// 设备每个采集项规定的编号
        /// </summary>
        public string tagCode { get; set; }
        /// <summary>
        /// 采集值
        /// </summary>
        public string tagValue { get; set; }
        /// <summary>
        /// 采集项采集时间
        /// </summary>
        public string tagTime { get; set; }
        /// <summary>
        /// 各产品所有参数的整体判断结果（Y/N）
        /// </summary>
        public string tagCalculateResult { get; set; }
        /// <summary>
        /// 采集项描述
        /// </summary>
        public string tagRemark { get; set; }
    }
}
